

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show comment</title>
    </head>
    <body>
        <div class="body">
            <h1>Show comment</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                    
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            
                            <td valign="top" class="value">${comment.id}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Title:</td>
                            
                            <td valign="top" class="value">${comment?.title}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Body:</td>
                            
                            <td valign="top" class="value">${comment?.body}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Rank:</td>
                            
                            <td valign="top" class="value">${comment?.rank}</td>
                            
                        </tr>

                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form controller="comment">
                    <input type="hidden" name="id" value="${comment?.id}" />
                        <!--g:ifUserCanEdit adminRoles="ROLE_ADMINISTRATOR" username="comment?.createdBy?.username"-->

                        %{--<g:ifUserCanEdit adminRoles="ROLE_ADMINISTRATOR" userName="${comment?.createdBy?.username}">--}%
                           <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                            <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                        %{--</g:ifUserCanEdit>--}%
                       

                </g:form>
            </div>
        </div>
    </body>
</html>
